package cn.pn.project.mapper.schedule;


import cn.pn.project.pojo.schedule.Ticketfile;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.sql.SQLException;
import java.util.List;
import java.util.Map;

@Mapper
public interface TicketFileDao {

    /**
     * 根据场地id查询票档信息
     * @param placeId
     * @return
     * @throws SQLException
     */
    public List<Ticketfile> getTickFileByPlaceId(@Param("placeId") Integer placeId) throws SQLException;

    /**
     * 多条件查询票档对象（谢耀翔）
     * @param param
     * @return
     * @throws Exception
     */
    public Ticketfile getTicketFileByMap(Map<String,Object> param)throws Exception;

    Integer updateTicketRepertory(@Param("ticketfileid")Integer ticketfileid,@Param("count")Integer count);

}
